<!--{subtemplate common/header_common}-->
	<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
	<link rel="stylesheet" type="text/css" href="{$_G[setting][csspath]}data/cache/style_{STYLEID}_css_space.css?{VERHASH}" />
	<link id="style_css" rel="stylesheet" type="text/css" href="{STATICURL}space/{if $space[theme]}$space[theme]{else}t1{/if}/style.css?{VERHASH}">
	<style id="diy_style">$space[spacecss]</style>
</head>

<body id="space" onkeydown="if(event.keyCode==27) return false;">
	<!--{if $space['self']}--><a id="diy-tg" href="home.php?mod=space&diy=yes" title="{lang dress_space}"><img src="{STATICURL}image/diy/panel-toggle-space.png" alt="DIY" /></a><!--{/if}-->
	<div id="append_parent"></div>
	<div id="ajaxwaitid"></div>

	<!--{if $space['self'] && $_GET['diy'] == 'yes' && $do == 'index' }-->
	<link rel="stylesheet" type="text/css" href="{$_G[setting][csspath]}data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
	<!--{subtemplate home/space_diy}-->
	<!--{/if}-->

	<div class="topnav cl">
		<p class="y navinf">
			<!--{if $_G['uid']}-->
				<strong><a href="home.php?mod=space&uid=$_G[uid]" class="vwmy" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
				<!--{if $_G['group']['allowinvisible']}--><span id="loginstatus" class="xg1"><a href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');doane(event);"><!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}--></a></span><!--{/if}-->
				<span class="pipe">|</span><span id="myspace" class="xg1 showmenu" onmouseover="showMenu(this.id);"><a href="home.php?mod=space&do=home">{lang my_center}</a></span>
				<span class="pipe">|</span><span id="usersetup" class="xg1 showmenu" onmouseover="showMenu(this.id);"><a href="home.php?mod=spacecp">{lang setup}</a></span>
				<span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
				<span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}<!--{if $_G[member][newpm]}-->($_G[member][newpm])<!--{/if}--></a>
				<!--{if $_G['group']['allowmanagearticle'] || $_G['group']['allowdiy'] || in_array($_G['uid'], $_G['setting']['ext_portalmanager'])}--><span class="pipe">|</span><a href="portal.php?mod=portalcp">{lang portal_manage}</a><!--{/if}-->
				<!--{if $_G['uid'] && $_G['group']['radminid'] > 1}--><span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a><!--{/if}-->
				<!--{if $_G['uid'] && ($_G['group']['radminid'] == 1 || $_G['member']['allowadmincp'])}--><span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a><!--{/if}-->
				<span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
			<!--{elseif !empty($_G['cookie']['loginuser'])}-->
				<strong><a id="loginuser">$_G['cookie']['loginuser']</a></strong>
				<span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);hideWindow('register');">{lang activation}</a>
				<span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
			<!--{else}-->
				<a href="member.php?mod={$_G[setting][regname]}" onclick="showWindow('register', this.href);hideWindow('login');">$_G['setting']['reglinkname']</a>
				<span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);hideWindow('register');">{lang login}</a>
			<!--{/if}-->
		</p>
		<ul class="cl">
			<li class="navlogo"><a href="./" title="$_G['setting']['bbname']">$_G['setting']['bbname']</a></li>
			<li><span id="navs" class="xg1 showmenu" onmouseover="showMenu(this.id);"><a href="home.php?mod=space&do=home">{lang return_homepage}</a></span></li>
		</ul>
	</div>

	<div id="hd" class="wp cl">

		<h2 id="spaceinfoshow">
			<!--{eval space_merge($space, 'field_home'); $space[domainurl] = space_domain($space);}-->
			<strong id="spacename" class="mbn">
				<!--{if $space[spacename]}-->$space[spacename]<!--{else}-->$space[username]{lang somebody_space}<!--{/if}-->
				<!--{if !$space['self']}--><a class="oshr xs1 xw0" onclick="showWindow(this.id, this.href, 'get', 0);" id="share_space" href="home.php?mod=spacecp&ac=share&type=space&id=$space[uid]">{lang share}</a><!--{/if}-->
			</strong>
			<a id="domainurl" href="$space[domainurl]" onclick="javascript:setCopy('$space[domainurl]', '{lang copy_space_address}');return false;" class="xs0 xw0">$space[domainurl]</a> <!--{if $space['self']}-->&nbsp;&nbsp;<a id="domainurl" href="$space[domainurl]" onclick="javascript:setCopy('$space[domainurl]', '{lang copy_space_address}');return false;" class="xs0 xw0">[{lang copy}]</a><!--{/if}-->
			<span id="spacedescription" class="xs1 xw0 mtn">$space[spacedescription]</span>
		</h2>

		<div id="nv">
			<ul>
				<!--{if $_G['adminid'] == 1 && $_G['setting']['allowquickviewprofile'] == 1}-->
					<li><a href="home.php?mod=space&uid=$space[uid]&view=admin">{lang main_page}</a></li>
				<!--{else}-->
					<li><a href="home.php?mod=space&uid=$space[uid]">{lang main_page}</a></li>
				<!--{/if}-->
				<li><a href="home.php?mod=space&uid=$space[uid]&do=home&view=me&from=space">{lang feed}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=doing&view=me&from=space">{lang doing}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me&from=space">{lang blog}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=album&view=me&from=space">{lang album}</a></li>
				<!--{if $_G['setting']['allowviewuserthread'] !== false}-->
				<li><a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space">{lang topic}</a></li>
				<!--{/if}-->
				<li><a href="home.php?mod=space&uid=$space[uid]&do=share&view=me&from=space">{lang share}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=friend&view=me&from=space">{lang friends}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=wall">{lang message_board}</a></li>
				<li><a href="home.php?mod=space&uid=$space[uid]&do=profile">{lang memcp_profile}</a></li>
			</ul>
		</div>
	</div>

	<!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
		<ul class="p_pop h_pop" id="plugin_menu" style="display: none">
		<!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
		     <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
		     <li>$module[url]</li>
		     <!--{/if}-->
		<!--{/loop}-->
		</ul>
	<!--{/if}-->
	$_G[setting][menunavs]
    
<!--{eval $mnid = getcurrentnav();}-->
<ul id="navs_menu" class="p_pop topnav_pop" style="display:none;">
<!--{loop $_G['setting']['navs'] $nav}-->
	<!--{eval $nav_showmenu = strpos($nav['nav'], 'onmouseover="showMenu(');}-->
    <!--{eval $nav_navshow = strpos($nav['nav'], 'onmouseover="navShow(')}-->
    <!--{if $nav_hidden !== false || $nav_navshow !== false}-->
    	<!--{eval $nav['nav'] = preg_replace("/onmouseover\=\"(.*?)\"/i", '',$nav['nav'])}-->
    <!--{/if}-->
    <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {$nav[nav]}></li><!--{/if}-->
<!--{/loop}-->
</ul>
<ul id="myspace_menu" class="p_pop" style="display:none;">
    <li><a href="home.php?mod=space">{lang my_space}</a></li>
</ul>